package com.zhilianbao.leyaogo.ui.adapter.goodscategory;

/**
 * Created by gyt on 2016/12/27
 */

import android.content.Context;
import android.widget.ImageView;

import com.bql.baseadapter.recycleView.QuickRcvAdapter;
import com.bql.baseadapter.recycleView.QuickRcvHolder;
import com.zhilianbao.leyaogo.R;
import com.zhilianbao.leyaogo.utils.ImageUtils;
import com.zhilianbao.leyaogo.utils.Utils;

import java.util.List;

/**
 * Created by gyt on 2016/12/27
 */
public class InfoBottomAdapter extends QuickRcvAdapter<String> {

    public InfoBottomAdapter(Context context, List<String> data) {
        super(context, data, R.layout.item_goods_details);
    }

    @Override
    protected void bindDataHelper(QuickRcvHolder viewHolder, int position, String picUrl) {
        ImageView goodsPic = (ImageView) viewHolder.getView(R.id.iv_goods_details);
        ImageUtils.loadGoodsPic(Utils.returnUrlShow(picUrl), goodsPic);
    }
}
